package com.mb.pic.controller;

import com.mb.common.vo.PicUploadResult;
import com.mb.pic.service.PicServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

@RestController
public class PicController {

    @RequestMapping("/pic/uploadImg")
    public PicUploadResult picUpload(MultipartFile pic){

        return picServiceImpl.picUpLoad(pic);
    }
   @Autowired
    private PicServiceImpl picServiceImpl;

}
